package com.msmall.base.pager;

import com.msmall.base.util.Constants;

public class DefaultPaginationFactory extends PaginationFactory{

	public PaginationSupport createPagination(String ua) {
		if(Constants.USER_AGENT_TYPE_HTML.equalsIgnoreCase(ua)){
			return new PaginationSupport();
		}else if(Constants.USER_AGENT_TYPE_MPL.equalsIgnoreCase(ua) || Constants.USER_AGENT_TYPE_WML.equalsIgnoreCase(ua)){
			return new WmlPaginationSupport();
		}
		return new PaginationSupport();
	}

}
